/**
 * 请求数据用于绘制图表
 */

import request from "@/utils/request";

export function getPieData() {
  return request({
    url: "/stat/tp",
    method: "get",
  });
}

export function getRectData() {
  return request({
    url: "/stat/ap",
    method: "get",
  });
}

export function getBarData() {
  return request({
    url: "/stat/sp",
    method: "get",
  });
}

export function getLiterData() {
  return request({
    url: "/stat/lr",
    method: "get",
  });
}

export function getRadarData() {
  return request({
    url: "/stat/ld",
    method: "get",
  });
}

export function getScatData() {
  return request({
    url: "/stat/all",
    method: "get",
  });
}
